package com.guan.serviceorder.client;

import com.guan.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Date: 2023/4/24 17:15
 * @Author: 管奇安
 * @Description:
 */
@Component
@FeignClient("service-edu")
public interface EduClient {


    /**
     * @date: 2023/4/24 17:10
     * @author: 管奇安
     * @description: 根据课程id查询课程信息 远程调用 , 请求路径写全 @PathVariable("id")必须带参数
     * @param: [id]
     * @return: com.guan.commonutils.ordervo.CourseWebVoOrder
     **/
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
